home *** CD-ROM | disk | FTP | other *** search
- !
- ! Default Mccoy script..
- !
- ! (c) DC Software, 1992
- !
- ! Pending Enhancements
- !
- ! - This script has no voices. For an example of voices, look at
- ! MERCHANT.SCR and HEALER.SCR
- !
-
- !------------------------------------------------------------------------!
- :@TALK ! Talk to the character !
- !------------------------------------------------------------------------!
-
- if player.hp = 0 then
- writeln( player.name, " is dead!" );
- STOP;
- endif;
-
- if npc.picture >= 0 then
- viewpcx(npc);
- endif;
-
- ! First, say hello.. !
- if NPC.V0 > 0 then
- writeln("Hey " ,player.name, ". What are you doing back here?" );
- else
- writeln( "What are you doing here?" );
- endif;
-
- ! Now, set some variables..
- NPC.V0 = 1; ! From know on, remember we've been here
-
- :LOOP
- L3 = getstr("Name","Job","Join","Bye");
- if L3 = -1 then
- writeln( "Ok." );
- goto XSTOP;
- endif;
-
- ! First, see if the keyword typed is in the character's text block !
- if dotext( S0 ) then
- if L3 = 3 goto XSTOP;
- goto LOOP;
- endif;
-
- ! It didn't, so try the predefined ones..
- on L3 goto CNAME, CJOB, CJOIN, CSTOP;
-
- ! Nope, try a 'DEFAULT' line
- if not dotext( "DEFAULT" ) then
- writeln( "Them dagblasted Hatfields! They'll hang for stealin' our pig!" );
- endif;
- goto LOOP;
-
- :CNAME
- writeln( "Name's ", NPC.name, "." );
- GOTO LOOP;
-
- :CJOB
- writeln( "Ain't none of yer bizness what I do." );
- GOTO LOOP;
-
- :CJOIN
- writeln( "Nope. I don't cotton to strangers. I work alone." );
- GOTO LOOP;
-
- :CSTOP
- writeln( "An don't come back lessen you find that pig! " );
- goto XSTOP;
-
- ! Feel free to expand on this list.. !
-
- !-----------------------------------------------------------------!
- ! All STOPs now lead here so the screen can be restored if needed !
- !-----------------------------------------------------------------!
- :XSTOP
- if npc.picture >= 0 then
- paint(window); ! Assumes the picture fits in the window !
- endif;
- STOP;
-